#include <iostream>

using namespace std;


int main(int argc, char const *argv[])
{
    short tell[20] = {3,6,9,2,4};
    short * e_ptr = tell;
    short (* arr_ptr)[20] = &tell;

    cout << *(e_ptr + 3) << " " << e_ptr[3] << " - " << *(tell + 3) << " " << tell[3] << " " << (*arr_ptr)[3] << endl;

    cout << tell << " - " << &tell[0] << endl;
    int i;
    short s;
    cout << sizeof(tell) << " " << sizeof(s) << " - " << sizeof(e_ptr) << " " << sizeof(i)<< endl;

    // char数组名、char指针、"引号字符串常量"都被解释为字符串第一个字符的地址

    char animal[20] = "horse";
    const char * bird = "wren";

    cout << animal << " - " << animal << endl;
    cout << bird << " - " << bird << endl;
    cout << "hello" << endl;


    return 0;
}
